package com.ojoin.ojoin.eb_spider.bean;

/**
 * Created by liaowuhen on 2017/3/21.
 */
public class CiMingUserOrder {
    private TJUserOrder userOrder;

    public String getKey(){
        int marry = 0;
        // 1 已婚   0 未婚
        if(this.getUserOrder().getIsMarried()){
            marry = 1 ;
        }
        return this.getUserOrder().getSex()+"_"+marry;
    }
    public CiMingUserOrder(TJUserOrder userOrder){
        this.userOrder = userOrder;
    }

    public TJUserOrder getUserOrder() {
        return userOrder;
    }

    public void setUserOrder(TJUserOrder userOrder) {
        this.userOrder = userOrder;
    }

    public String getIdcardtype(){
        if(this.getUserOrder().getIdcardtype() ==1 ){
            return "身份证";
        }
        return null;
    }

    public String getIsMarried(){
        if(this.getUserOrder().getIsMarried()){
            return "1";
        }else {
            return "2";
        }
    }

}
